Tables [dbo].[PromotionRuleRef]
Properties
PropertyValue
Created10:31:35 AM Tuesday, March 02, 2010
Last Modified11:40:07 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_PromotionRuleRef: PromotionRuleCodePromotionRuleCodeint4
No
Indexes AK_PromotionRuleRef_PromotionRuleDesc: PromotionRuleDescPromotionRuleDescnvarchar(50)100
No
Indexes AK_PromotionRuleRef_PromotionRuleName: PromotionRuleNamePromotionRuleNamenvarchar(15)30
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_PromotionRuleRef: PromotionRuleCodePK_PromotionRuleRefPromotionRuleCode
Yes
AK_PromotionRuleRef_PromotionRuleDescPromotionRuleDesc
Yes
AK_PromotionRuleRef_PromotionRuleNamePromotionRuleName
Yes
SQL Script
CREATE TABLE [dbo].[PromotionRuleRef]
(
[PromotionRuleCode] [int] NOT NULL,
[PromotionRuleDesc] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PromotionRuleName] [nvarchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[PromotionRuleRef] ADD CONSTRAINT [PK_PromotionRuleRef] PRIMARY KEY CLUSTERED ([PromotionRuleCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PromotionRuleRef] ADD CONSTRAINT [AK_PromotionRuleRef_PromotionRuleDesc] UNIQUE NONCLUSTERED ([PromotionRuleDesc]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PromotionRuleRef] ADD CONSTRAINT [AK_PromotionRuleRef_PromotionRuleName] UNIQUE NONCLUSTERED ([PromotionRuleName]) ON [PRIMARY]
GO
Uses